package com.aizhixin.lab.course.course.repository;

import com.aizhixin.lab.course.course.entity.CourseChapterLike;
import org.springframework.data.jpa.repository.JpaRepository;

public interface CourseChapterLikeRepository extends JpaRepository<CourseChapterLike,Long> {
    CourseChapterLike findByChapterIdAndCreatedBy(Long chapterId,Long createdId);
    Integer countByChapterId(Long chapterId);
}
